﻿

using System;
using DemoClient.CalculatorService;

namespace DemoClient
{
    class Program
    {
        static void Main(string[] args)
        {
            using (CalculatorServiceClient proxy = new CalculatorServiceClient())
            {
                var x = 1.0;
                var y = 2.0;
                Console.WriteLine("x = {0},y={1},x+y={2}", x, y, proxy.Add(x, y));
                Console.WriteLine("x = {0},y={1},x-y={2}", x, y, proxy.Subtract(x, y));
                Console.WriteLine("x = {0},y={1},x*y={2}", x, y, proxy.Multiply(x, y));
                Console.WriteLine("x = {0},y={1},x/y={2}", x, y, proxy.Divide(x, y));
            };
            Console.Read();
        }
    }
}
